package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class SystemCall {
    public static final int STATE_COMMON = 0;//草稿
    public static final int STATE_AUDIT = 1;//待审核
    public static final int STATE_RELEASE = 2;//发布
    public static final int STATE_REJECT = -1;//拒绝

    //系统通知id
    private Long id;
    //系统通知id
    private Article article;
    //系统通知的状态
    private Integer state;
    //系统用户的id
    private Long userId;

    public String getStateName(){
        if(null==state){
            return "这条广告是给你玩的";
        }else if (2==state){
            return "已被发布";
        }else if(0==state){
             return "是待审核状态";
        } else if(1==state){
            return "太菜了还是草稿";
        }else{
            return "已被拒绝";
        }
    }
}